package com.yunhe.common.model.data;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 事件对象
 * @desc 事件对象定义
 * @author liuronglei
 */
public class AlarmEvent implements Serializable {

    private Long id;
    private String eventNum;
    private Long firmCode;
    private String firmTitle;
    private Long stationCode;
    private String stationTitle;
    private Long devCode;
    private String devTitle;
    private String records;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    private Long continueTime;
    private String userNameProcess;
    private String userTitleProcess;
    private Long abnormalCode;
    private String abnormalTitle;
    private Long abnormalTypeCode;
    private String abnormalTypeTitle;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date latestProcessTime;
    private Long ignoreTime;
    private Long abnormalStatusCode;
    private String abnormalStatusTitle;
    private Long alarmLevelCode;
    private String alarmLevelTitle;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEventNum() {
        return eventNum.replace("SJ", "");
    }

    public void setEventNum(String eventNum) {
        this.eventNum = eventNum;
    }

    public Long getFirmCode() {
        return firmCode;
    }

    public void setFirmCode(Long firmCode) {
        this.firmCode = firmCode;
    }

    public Long getDevCode() {
        return devCode;
    }

    public void setDevCode(Long devCode) {
        this.devCode = devCode;
    }

    public String getRecords() {
        return records;
    }

    public void setRecords(String records) {
        this.records = records;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Long getContinueTime() {
        return continueTime;
    }

    public void setContinueTime(Long continueTime) {
        this.continueTime = continueTime;
    }

    public String getUserNameProcess() {
        return userNameProcess;
    }

    public void setUserNameProcess(String userNameProcess) {
        this.userNameProcess = userNameProcess;
    }

    public Date getLatestProcessTime() {
        return latestProcessTime;
    }

    public void setLatestProcessTime(Date latestProcessTime) {
        this.latestProcessTime = latestProcessTime;
    }

    public String getFirmTitle() {
        return firmTitle;
    }

    public void setFirmTitle(String firmTitle) {
        this.firmTitle = firmTitle;
    }

    public Long getStationCode() {
        return stationCode;
    }

    public void setStationCode(Long stationCode) {
        this.stationCode = stationCode;
    }

    public String getStationTitle() {
        return stationTitle;
    }

    public void setStationTitle(String stationTitle) {
        this.stationTitle = stationTitle;
    }

    public String getDevTitle() {
        return devTitle;
    }

    public void setDevTitle(String devTitle) {
        this.devTitle = devTitle;
    }

    public String getUserTitleProcess() {
        return userTitleProcess;
    }

    public void setUserTitleProcess(String userTitleProcess) {
        this.userTitleProcess = userTitleProcess;
    }

    public Long getAbnormalCode() {
        return abnormalCode;
    }

    public void setAbnormalCode(Long abnormalCode) {
        this.abnormalCode = abnormalCode;
    }

    public String getAbnormalTitle() {
        return abnormalTitle;
    }

    public void setAbnormalTitle(String abnormalTitle) {
        this.abnormalTitle = abnormalTitle;
    }

    public Long getAbnormalTypeCode() {
        return abnormalTypeCode;
    }

    public void setAbnormalTypeCode(Long abnormalTypeCode) {
        this.abnormalTypeCode = abnormalTypeCode;
    }

    public String getAbnormalTypeTitle() {
        return abnormalTypeTitle;
    }

    public void setAbnormalTypeTitle(String abnormalTypeTitle) {
        this.abnormalTypeTitle = abnormalTypeTitle;
    }

    public Long getIgnoreTime() {
        return ignoreTime;
    }

    public void setIgnoreTime(Long ignoreTime) {
        this.ignoreTime = ignoreTime;
    }

    public Long getAbnormalStatusCode() {
        return abnormalStatusCode;
    }

    public void setAbnormalStatusCode(Long abnormalStatusCode) {
        this.abnormalStatusCode = abnormalStatusCode;
    }

    public String getAbnormalStatusTitle() {
        return abnormalStatusTitle;
    }

    public void setAbnormalStatusTitle(String abnormalStatusTitle) {
        this.abnormalStatusTitle = abnormalStatusTitle;
    }

    public Long getAlarmLevelCode() {
        return alarmLevelCode;
    }

    public void setAlarmLevelCode(Long alarmLevelCode) {
        this.alarmLevelCode = alarmLevelCode;
    }

    public String getAlarmLevelTitle() {
        return alarmLevelTitle;
    }

    public void setAlarmLevelTitle(String alarmLevelTitle) {
        this.alarmLevelTitle = alarmLevelTitle;
    }
}